#include <iostream>
using namespace std;

class Person
{
public:
    Person()
    {
        cout << "Person()" << endl;
    }
    ~Person()
    {
        cout << "~Person()" << endl;
    }

    void run()
    {
        cout << "run()" << endl;
    }

private:
    int age;

};

int main()
{
    const char * str = "hello world";
    #if 0
    /* C语言写法，没有问题*/
    char * buffer = (char *)str;
    #else 1
    /* 将const属性转换为非const属性*/
    char * buffer = const_cast<char *>(str);
    #endif

    return 0;
}